<?php

class Content extends BaseContent
{
    public function __toString(){
        return $this->getTitle();
    }
    
    public function getsfAssets(){
        $links = $this->getLinkContentAssetsJoinsfAsset();
        $output = array();
        /* @var $link LinkContentAsset*/
        foreach ($links as $link){
            $output[] = $link->getsfAsset();
        }
        return $output;
     
    }
    
    
    public function getBody($culture = null){
    	
    	$body = parent::getBody($culture);
    	
    	if(globals::IS_STRIP_HTML_TAGS){
    		$body = strip_tags($body);
    	}
    	return preg_replace( '/\s/', ' ' , $body );
    	
    }
    
}


sfPropelBehavior::add('Content', array('created_by'));